Skip to content

Remove slashes from the end of charset tags #1293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2021
Merged

Conversation

s5bug
Copy link
Contributor

@s5bug s5bug commented Nov 4, 2021

For some reason, some scrapers (most notably Discord's OGP scraper) don't respect charset tags that do contain closing slashes.

Huge thanks to @adryd325 for taking the time to poke at Discord's scraper to figure this out.

For some reason, some scrapers (most notably Discord's OGP scraper) don't respect charset tags that do contain closing slashes.
@SethTisue
Copy link
Member

SethTisue commented Nov 4, 2021

There is a bunch of stuff about this issue out there on the web, e.g. https://superuser.com/questions/1048013/why-some-metatags-have-in-the-end-and-some-dont , not really sure what the most authoritative source of advice is on this, but afaict from the several things I read, the change is safe, given that our site is HTML and not XHTML.

@SethTisue SethTisue merged commit aabc86a into scala:main Nov 4, 2021
@SethTisue
Copy link
Member

Assuming this fixes it, a corresponding PR over in the other repo (https://github.com/scala/docs.scala-lang/) would be welcome.

@s5bug
Copy link
Contributor Author

s5bug commented Nov 5, 2021

I'll wait and see, and if it does fix it I'll do so 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants